libmymath.so:myadd.o mysub.o
	gcc -shared -o $@ $^
myadd.o:myadd.c
	gcc -c $<
mysub.o:mysub.c
	gcc -c $<
#清理
.PHONY:clean
clean:
	rm -rf output *.o *.so
#发布
.PHONY:output
output:
	mkdir -p mylibso/include
	mkdir -p mylibso/lib
	cp *.h mylibso/include/
	cp *.so mylibso/lib/
